toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    if (email != null) r'email': email,
    if (id != null) r'id': id,
    if (name != null) r'name': name,
    if (telephone != null) r'telephone': telephone,
    if (type != null) r'type': type,
  };
}