UserAccess.fromJson constructor

UserAccess.fromJson(
  1. Map json_
)

Implementation

UserAccess.fromJson(core.Map json_)
    : this(
        accountAccess: json_.containsKey('accountAccess')
            ? AccountAccess.fromJson(
                json_['accountAccess'] as core.Map<core.String, core.dynamic>)
            : null,
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        containerAccess: json_.containsKey('containerAccess')
            ? (json_['containerAccess'] as core.List)
                .map((value) => ContainerAccess.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        emailAddress: json_.containsKey('emailAddress')
            ? json_['emailAddress'] as core.String
            : null,
        permissionId: json_.containsKey('permissionId')
            ? json_['permissionId'] as core.String
            : null,
      );