PermissionInfo.fromJson constructor

PermissionInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PermissionInfo.fromJson(Map<String, dynamic> json) {
  return PermissionInfo(
    role: (json['Role'] as String?)?.toRoleType(),
    type: (json['Type'] as String?)?.toRolePermissionType(),
  );
}