toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (organizationId != null) {
    _json['organizationId'] = organizationId;
  }
  if (name != null) {
    _json['name'] = name;
  }
  if (users != null) {
    _json['users'] = users?.map((e) => e.toJson()).toList();
  }
  if (policies != null) {
    _json['policies'] = policies?.map((e) => e.toJson()).toList();
  }
  if (privateKeys != null) {
    _json['privateKeys'] = privateKeys?.map((e) => e.toJson()).toList();
  }
  if (invitations != null) {
    _json['invitations'] = invitations?.map((e) => e.toJson()).toList();
  }
  if (tags != null) {
    _json['tags'] = tags?.map((e) => e.toJson()).toList();
  }
  if (rootQuorum != null) {
    _json['rootQuorum'] = rootQuorum?.toJson();
  }
  if (features != null) {
    _json['features'] = features?.map((e) => e.toJson()).toList();
  }
  if (wallets != null) {
    _json['wallets'] = wallets?.map((e) => e.toJson()).toList();
  }
  if (smartContractInterfaceReferences != null) {
    _json['smartContractInterfaceReferences'] = smartContractInterfaceReferences?.map((e) => e.toJson()).toList();
  }
  return _json;
}