toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (type != null) "type": encodeValue(type),
if (id != null) "id": encodeValue(id),
if (name != null) "name": encodeValue(name),
if (email != null) "email": encodeValue(email),
};