toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var entityId = this.entityId;
  var name = this.name;

  final json = <String, Object?>{};
  if (entityId != null) {
    json[r'entityId'] = entityId;
  }
  json[r'name'] = name;
  return json;
}