v1OrganizationData.fromJson constructor

v1OrganizationData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory v1OrganizationData.fromJson(Map<String, dynamic> json) {
  final _organizationId = json['organizationId'] as String?;
  final _name = json['name'] as String?;
  final _users = (json['users'] as List?)?.map((e) => v1User.fromJson(e as Map<String, dynamic>)).toList();
  final _policies = (json['policies'] as List?)?.map((e) => v1Policy.fromJson(e as Map<String, dynamic>)).toList();
  final _privateKeys = (json['privateKeys'] as List?)?.map((e) => v1PrivateKey.fromJson(e as Map<String, dynamic>)).toList();
  final _invitations = (json['invitations'] as List?)?.map((e) => v1Invitation.fromJson(e as Map<String, dynamic>)).toList();
  final _tags = (json['tags'] as List?)?.map((e) => datav1Tag.fromJson(e as Map<String, dynamic>)).toList();
  final _rootQuorum = json['rootQuorum'] == null ? null : externaldatav1Quorum.fromJson(json['rootQuorum'] as Map<String, dynamic>);
  final _features = (json['features'] as List?)?.map((e) => v1Feature.fromJson(e as Map<String, dynamic>)).toList();
  final _wallets = (json['wallets'] as List?)?.map((e) => v1Wallet.fromJson(e as Map<String, dynamic>)).toList();
  final _smartContractInterfaceReferences = (json['smartContractInterfaceReferences'] as List?)?.map((e) => v1SmartContractInterfaceReference.fromJson(e as Map<String, dynamic>)).toList();
  return v1OrganizationData(
    organizationId: _organizationId,
    name: _name,
    users: _users,
    policies: _policies,
    privateKeys: _privateKeys,
    invitations: _invitations,
    tags: _tags,
    rootQuorum: _rootQuorum,
    features: _features,
    wallets: _wallets,
    smartContractInterfaceReferences: _smartContractInterfaceReferences,
  );
}