asMap method Null safety

Map<String, dynamic> asMap()

Implementation

Map<String, dynamic> asMap() {
  return <String, dynamic>{
    'propertyName': propertyName,
    'fieldName': fieldName,
    'fieldType': fieldType,
    'primary': primary,
    'mark': mark
  };
}