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? 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 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?, 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 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, }; }