AddFieldMapping adds the provided FieldMapping for this section of the document.
(fm *FieldMapping)
| 305 | // AddFieldMapping adds the provided FieldMapping for this section |
| 306 | // of the document. |
| 307 | func (dm *DocumentMapping) AddFieldMapping(fm *FieldMapping) { |
| 308 | if dm.Fields == nil { |
| 309 | dm.Fields = make([]*FieldMapping, 0) |
| 310 | } |
| 311 | dm.Fields = append(dm.Fields, fm) |
| 312 | } |
| 313 | |
| 314 | // UnmarshalJSON offers custom unmarshaling with optional strict validation |
| 315 | func (dm *DocumentMapping) UnmarshalJSON(data []byte) error { |
no outgoing calls