PermissionGrant.fromJson constructor

PermissionGrant.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory PermissionGrant.fromJson(Map<String, Object?> json) {
  return PermissionGrant(
    holder: json[r'holder'] != null
        ? PermissionHolder.fromJson(json[r'holder']! as Map<String, Object?>)
        : null,
    id: (json[r'id'] as num?)?.toInt(),
    permission: json[r'permission'] as String?,
    self: json[r'self'] as String?,
  );
}