RoleDTO.fromJson constructor

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

Implementation

RoleDTO.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
  name = json['name'];
  permissions = json['permissions'];
  group = json['group'] != null ? RoleGroupDTO.fromJson(json['group']) : null;
}