toJson method

  1. @override
Map<String, Object?> toJson()

Implementation

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