SharePermissionInputBean.fromJson constructor

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

Implementation

factory SharePermissionInputBean.fromJson(Map<String, Object?> json) {
  return SharePermissionInputBean(
    accountId: json[r'accountId'] as String?,
    groupId: json[r'groupId'] as String?,
    groupname: json[r'groupname'] as String?,
    projectId: json[r'projectId'] as String?,
    projectRoleId: json[r'projectRoleId'] as String?,
    rights: (json[r'rights'] as num?)?.toInt(),
    type: SharePermissionInputBeanType.fromValue(
        json[r'type'] as String? ?? ''),
  );
}