toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (allowCreation != null) 'allowCreation': allowCreation!,
if (availableLocations != null)
'availableLocations':
availableLocations!.map((value) => value.toJson()).toList(),
if (category != null) 'category': category!,
if (name != null) 'name': name!,
if (type != null) 'type': type!,
};