toJson method

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

Implementation

@override
Map<String, Object?> toJson() => {
      if (name != null) "name": encodeValue(name),
      if (alias != null) "alias": encodeValue(alias),
      if (description != null) "description": encodeValue(description),
      if (legalEntityType != null)
        "legal_entity_type": encodeValue(legalEntityType),
    };