Grant.fromJson constructor

Grant.fromJson(
  1. Map json_
)

Implementation

Grant.fromJson(core.Map json_)
    : this(
        appLevelPermissions: json_.containsKey('appLevelPermissions')
            ? (json_['appLevelPermissions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        packageName: json_.containsKey('packageName')
            ? json_['packageName'] as core.String
            : null,
      );