PermissionChange.fromJson constructor

PermissionChange.fromJson(
  1. Map json_
)

Implementation

PermissionChange.fromJson(core.Map json_)
    : this(
        addedPermissions: json_.containsKey('addedPermissions')
            ? (json_['addedPermissions'] as core.List)
                .map((value) => Permission.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        removedPermissions: json_.containsKey('removedPermissions')
            ? (json_['removedPermissions'] as core.List)
                .map((value) => Permission.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );