User.fromJson constructor

User.fromJson(
  1. Map json_
)

Implementation

User.fromJson(core.Map json_)
    : this(
        accessState: json_.containsKey('accessState')
            ? json_['accessState'] as core.String
            : null,
        developerAccountPermissions:
            json_.containsKey('developerAccountPermissions')
                ? (json_['developerAccountPermissions'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        email:
            json_.containsKey('email') ? json_['email'] as core.String : null,
        expirationTime: json_.containsKey('expirationTime')
            ? json_['expirationTime'] as core.String
            : null,
        grants: json_.containsKey('grants')
            ? (json_['grants'] as core.List)
                .map((value) => Grant.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        partial: json_.containsKey('partial')
            ? json_['partial'] as core.bool
            : null,
      );