UserPermission.fromJson constructor
Implementation
factory UserPermission.fromJson(Map<String, Object?> json) {
return UserPermission(
deprecatedKey: json[r'deprecatedKey'] as bool? ?? false,
description: json[r'description'] as String?,
havePermission: json[r'havePermission'] as bool? ?? false,
id: json[r'id'] as String?,
key: json[r'key'] as String?,
name: json[r'name'] as String?,
type: json[r'type'] != null
? UserPermissionType.fromValue(json[r'type']! as String)
: null,
);
}