UserPermission.fromJson constructor

UserPermission.fromJson(
  1. Map json_
)

Implementation

UserPermission.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,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
      );