toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (collectionId != null) 'collectionId': collectionId!,
if (fields != null) 'fields': fields!,
if (name != null) 'name': name!,
if (state != null) 'state': state!,
};