toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
if (address != null) r'address': address,
if (contactPoint != null) r'contactPoint': contactPoint,
if (createdAt != null) r'createdAt': createdAt!.toUtc().toIso8601String(),
if (description != null) r'description': description,
if (id != null) r'id': id,
r'name': name,
if (onCall != null) r'onCall': onCall,
if (type != null) r'type': type,
if (updatedAt != null) r'updatedAt': updatedAt!.toUtc().toIso8601String(),
};
}