toMap method

Map<String, dynamic> toMap()

Convert to a string map to be used in the model JSON file.

Implementation

Map<String, dynamic> toMap() {
  final ret = <String, dynamic>{};
  ret['_note1'] = notes[0];
  ret['_note2'] = notes[1];
  ret['_note3'] = notes[2];
  ret['entities'] = entities.map((e) => e.toMap(forModelJson: true)).toList();
  ret['lastEntityId'] = lastEntityId.toString();
  ret['lastIndexId'] = lastIndexId.toString();
  ret['lastRelationId'] = lastRelationId.toString();
  ret['lastSequenceId'] = lastSequenceId.toString();
  ret['modelVersion'] = modelVersion;
  ret['modelVersionParserMinimum'] = modelVersionParserMinimum;
  ret['retiredEntityUids'] = retiredEntityUids;
  ret['retiredIndexUids'] = retiredIndexUids;
  ret['retiredPropertyUids'] = retiredPropertyUids;
  ret['retiredRelationUids'] = retiredRelationUids;
  ret['version'] = version;
  return ret;
}