NewPermissionsEvent.fromJson constructor

NewPermissionsEvent.fromJson(
  1. Map json_
)

Implementation

NewPermissionsEvent.fromJson(core.Map json_)
    : this(
        approvedPermissions: json_.containsKey('approvedPermissions')
            ? (json_['approvedPermissions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        productId: json_.containsKey('productId')
            ? json_['productId'] as core.String
            : null,
        requestedPermissions: json_.containsKey('requestedPermissions')
            ? (json_['requestedPermissions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );