You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

81 lines
2.2 KiB

class Organization {
String? id;
String? name;
dynamic organizationTypes;
dynamic newAuth;
String? otherAuth;
String? psmAuth;
String? dangerAuth;
dynamic parentId;
int? order;
bool? enabled;
String? level;
String? code;
List<dynamic>? organizationTypeIds;
String? creationTime;
dynamic creatorId;
DateTime? lastModificationTime;
String? lastModifierId;
Organization({
this.id,
this.name,
this.organizationTypes,
this.newAuth,
this.otherAuth,
this.psmAuth,
this.dangerAuth,
this.parentId,
this.order,
this.enabled,
this.level,
this.code,
this.organizationTypeIds,
this.creationTime,
this.creatorId,
this.lastModificationTime,
this.lastModifierId,
});
factory Organization.fromJson(Map<String, dynamic> json) => Organization(
id: json['id'] as String?,
name: json['name'] as String?,
organizationTypes: json['organizationTypes'] as dynamic,
newAuth: json['newAuth'] as dynamic,
otherAuth: json['otherAuth'] as String?,
psmAuth: json['psmAuth'] as String?,
dangerAuth: json['dangerAuth'] as String?,
parentId: json['parentId'] as dynamic,
order: json['order'] as int?,
enabled: json['enabled'] as bool?,
level: json['level'] as String?,
code: json['code'] as String?,
organizationTypeIds: json['organizationTypeIds'] as List<dynamic>?,
creationTime: json['creationTime'] as String?,
creatorId: json['creatorId'] as dynamic,
lastModificationTime: json['lastModificationTime'] == null
? null
: DateTime.parse(json['lastModificationTime'] as String),
lastModifierId: json['lastModifierId'] as String?,
);
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'organizationTypes': organizationTypes,
'newAuth': newAuth,
'otherAuth': otherAuth,
'psmAuth': psmAuth,
'dangerAuth': dangerAuth,
'parentId': parentId,
'order': order,
'enabled': enabled,
'level': level,
'code': code,
'organizationTypeIds': organizationTypeIds,
'creationTime': creationTime,
'creatorId': creatorId,
'lastModificationTime': lastModificationTime?.toIso8601String(),
'lastModifierId': lastModifierId,
};
}