Role.fromJson constructor

Role.fromJson(
  1. Map json_
)

Implementation

Role.fromJson(core.Map json_)
    : this(
        deleted: json_.containsKey('deleted')
            ? json_['deleted'] as core.bool
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        includedPermissions: json_.containsKey('includedPermissions')
            ? (json_['includedPermissions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        stage:
            json_.containsKey('stage') ? json_['stage'] as core.String : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );