toMap method
Implementation
Map toMap() {
return {
if (type != null) 'type': type,
if (numberOfFragments != null) 'number_of_fragments': numberOfFragments,
if (fragmentSize != null) 'fragment_size': fragmentSize,
if (fields != null)
'fields': fields!.map((k, v) => MapEntry<String, Map>(k, v.toMap())),
};
}