Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
378 righe
15 KiB
378 righe
15 KiB
class Applicant { |
|
late int id; |
|
late String name; |
|
late String surname; |
|
late String company_name; |
|
late String tax_code; |
|
late String address; |
|
late String district; |
|
late String province; |
|
late String pec_address; |
|
late String email_address; |
|
late String deleted; |
|
late JoinData _joinData; |
|
|
|
/* List<Applicant> fromListJson(Map<String, dynamic> json) { |
|
Applicant applicant = new Applicant(); |
|
List<Applicant> listaApplicants = []; |
|
for (int i = 0; i < json.length; i++) { |
|
(json['id'] != null ? applicant.id = json['id'] : 0); |
|
(json['name'] != null ? applicant.name = json['name'].toString() : ""); |
|
(json['surname'] != null |
|
? applicant.surname = json['surname'].toString() |
|
: ""); |
|
(json['company_name'] != null |
|
? applicant.company_name = json['company_name'].toString() |
|
: ""); |
|
(json['tax_code'] != null |
|
? applicant.tax_code = json['tax_code'].toString() |
|
: ""); |
|
(json['address'] != null |
|
? applicant.address = json['address'].toString() |
|
: ""); |
|
(json['district'] != null |
|
? applicant.district = json['district'].toString() |
|
: ""); |
|
(json['province'] != null |
|
? applicant.province = json['province'].toString() |
|
: ""); |
|
(json['email_address'] != null |
|
? applicant.email_address = json['email_address'].toString() |
|
: ""); |
|
(json['deleted'] != null |
|
? applicant.deleted = json['deleted'].toString() |
|
: ""); |
|
(json['_joinData'] != null |
|
? JoinData.fromJson(json['_joinData']) |
|
: new JoinData()); |
|
|
|
(json['pec_address'] != null ? json['pec_address'].toString() : ""); |
|
listaApplicants.add(applicant); |
|
} |
|
return listaApplicants; |
|
} |
|
*/ |
|
Applicant.fromJson(Map<String, dynamic> json) |
|
: this.id = (json['id'] != null ? json['id'] : 0), |
|
this.name = (json['name'] != null ? json['name'].toString() : ""), |
|
this.surname = |
|
(json['surname'] != null ? json['surname'].toString() : ""), |
|
this.company_name = (json['company_name'] != null |
|
? json['company_name'].toString() |
|
: ""), |
|
this.tax_code = |
|
(json['tax_code'] != null ? json['tax_code'].toString() : ""), |
|
this.address = |
|
(json['address'] != null ? json['address'].toString() : ""), |
|
this.district = |
|
(json['district'] != null ? json['district'].toString() : ""), |
|
this.province = |
|
(json['province'] != null ? json['province'].toString() : ""), |
|
this.email_address = (json['email_address'] != null |
|
? json['email_address'].toString() |
|
: ""), |
|
this.deleted = |
|
(json['deleted'] != null ? json['deleted'].toString() : ""), |
|
this._joinData = (json['_joinData'] != null |
|
? JoinData.fromJson(json['_joinData']) |
|
: new JoinData()), |
|
this.pec_address = |
|
(json['pec_address'] != null ? json['pec_address'].toString() : ""); |
|
Applicant() {} |
|
Map toJson() => { |
|
'id': id, |
|
'name': name, |
|
'surname': surname, |
|
'company_name': company_name, |
|
'tax_code': tax_code, |
|
'address': address, |
|
'district': district, |
|
'province': province, |
|
'email_address': email_address, |
|
'deleted': deleted, |
|
'_joinData': _joinData.toJson(), |
|
'pec_address': pec_address |
|
}; |
|
} |
|
|
|
class ControllableObject { |
|
late int id; |
|
late String created; |
|
late String modified; |
|
late int organisation_id; |
|
late int controllable_object_type_id; |
|
late int create_user_id; |
|
late int edit_user_id; |
|
late int edit_organisation_id; |
|
late String deleted; |
|
|
|
ControllableObject.fromJson(Map<String, dynamic> json) |
|
: this.id = (json['id'] != null ? json['id'] : 0), |
|
this.created = |
|
(json['created'] != null ? json['created'].toString() : ""), |
|
this.modified = |
|
(json['modified'] != null ? json['modified'].toString() : ""), |
|
this.organisation_id = |
|
(json['organisation_id'] != null ? json['organisation_id'] : 0), |
|
this.create_user_id = |
|
(json['create_user_id'] != null ? json['create_user_id'] : 0), |
|
this.controllable_object_type_id = |
|
(json['controllable_object_type_id'] != null |
|
? json['controllable_object_type_id'] |
|
: 0), |
|
this.edit_user_id = |
|
(json['edit_user_id'] != null ? json['edit_user_id'] : 0), |
|
this.edit_organisation_id = (json['edit_organisation_id'] != null |
|
? json['edit_organisation_id'] |
|
: 0), |
|
this.deleted = |
|
(json['deleted'] != null ? json['deleted'].toString() : ""); |
|
ControllableObject() {} |
|
Map toJson() => { |
|
'id': id, |
|
'created': created, |
|
'modified': modified, |
|
'organisation_id': organisation_id, |
|
'create_user_id': create_user_id, |
|
'controllable_object_type_id': controllable_object_type_id, |
|
'edit_user_id': edit_user_id, |
|
'edit_organisation_id': edit_organisation_id, |
|
'deleted': deleted |
|
}; |
|
} |
|
|
|
class JoinData { |
|
late int id; |
|
late int applicant_id; |
|
late int water_drawing_paperwork_id; |
|
late int is_primary_applicant; |
|
|
|
JoinData.fromJson(Map<String, dynamic> json) |
|
: this.id = (json['id'] != null ? json['id'] : 0), |
|
this.applicant_id = |
|
(json['applicant_id'] != null ? json['applicant_id'] : ""), |
|
this.is_primary_applicant = (json['is_primary_applicant'] != null |
|
? json['is_primary_applicant'] |
|
: ""), |
|
this.water_drawing_paperwork_id = |
|
(json['water_drawing_paperwork_id'] != null |
|
? json['water_drawing_paperwork_id'] |
|
: ""); |
|
JoinData() {} |
|
Map toJson() => { |
|
'id': id, |
|
'applicant_id': applicant_id, |
|
'water_drawing_paperwork_id': water_drawing_paperwork_id, |
|
'is_primary_applicant': is_primary_applicant, |
|
}; |
|
} |
|
|
|
class PraticheModel { |
|
late int id; |
|
late int water_drawing_paperwork_status_id; |
|
late String from_date; |
|
late String to_date; |
|
late String gurs_reference; |
|
late String authorisation_type; |
|
late String concession_decree_number; |
|
late String release_date; |
|
late String concession_duration; |
|
late String expiration_date; |
|
late String first_istance; |
|
late String takeover; |
|
late String initial_static_level_water; |
|
late String initial_static_level_water_date; |
|
late String static_level_water; |
|
late String static_level_water_date; |
|
late String authority_civil_engineer_code; |
|
late String authority_province; |
|
late String authority_identification_code_civil_engineering_office; |
|
late String authority_identification_code_derivation_department_water_waste; |
|
late String water_drawing_article_id; |
|
late int controllable_object_id; |
|
late String deleted; |
|
late String geom; |
|
late String feature_collection; |
|
late bool scanned; |
|
late int drar_user_id; |
|
late int gc_user_id; |
|
late WaterDrawingPaperworkStatus water_drawing_paperwork_status; |
|
late ControllableObject controllable_object; |
|
late dynamic applicants; |
|
late bool check_thc; |
|
late bool check_dv; |
|
late bool check_lic; |
|
late bool check_dec; |
|
late bool check_dsc; |
|
late bool check2a; |
|
late bool check_ssd; |
|
late bool check_dam; |
|
|
|
Map toJson() => { |
|
'id': id, |
|
'water_drawing_paperwork_status_id': water_drawing_paperwork_status_id, |
|
'from_date': from_date, |
|
'to_date': to_date, |
|
'gurs_reference': gurs_reference, |
|
'authorisation_type': authorisation_type, |
|
'concession_decree_number': concession_decree_number, |
|
'release_date': release_date, |
|
'concession_duration': concession_duration, |
|
'expiration_date': expiration_date, |
|
'first_istance': first_istance, |
|
'takeover': takeover, |
|
'initial_static_level_water': initial_static_level_water, |
|
'initial_static_level_water_date': initial_static_level_water_date, |
|
'static_level_water': static_level_water, |
|
'static_level_water_date': static_level_water_date, |
|
'authority_civil_engineer_code': authority_civil_engineer_code, |
|
'authority_province': authority_province, |
|
'authority_identification_code_derivation_department_water_waste': |
|
authority_identification_code_derivation_department_water_waste, |
|
'water_drawing_article_id': water_drawing_article_id, |
|
'controllable_object_id': controllable_object_id, |
|
'authority_identification_code_civil_engineering_office': |
|
authority_identification_code_civil_engineering_office, |
|
'deleted': deleted, |
|
'geom': geom, |
|
'feature_collection': feature_collection, |
|
'scanned': scanned, |
|
'drar_user_id': drar_user_id, |
|
'gc_user_id': gc_user_id, |
|
'water_drawing_paperwork_status': |
|
water_drawing_paperwork_status.toJson(), |
|
'applicants': applicants, |
|
'controllable_object': controllable_object.toJson(), |
|
'check_thc': check_thc, |
|
'check_dv': check_dv, |
|
'check_lic': check_lic, |
|
'check_dec': check_dec, |
|
'check_dsc': check_dsc, |
|
'check2a': check2a, |
|
'check_ssd': check_ssd, |
|
'check_dam': check_dam, |
|
}; |
|
|
|
PraticheModel.fromJson(Map<String, dynamic> json) |
|
: this.id = (json['id'] != null ? json['id'] : 0), |
|
this.water_drawing_paperwork_status_id = |
|
(json['water_drawing_paperwork_status_id'] != null |
|
? json['water_drawing_paperwork_status_id'] |
|
: 0), |
|
this.from_date = |
|
(json['from_date'] != null ? json['from_date'].toString() : ""), |
|
this.to_date = |
|
(json['to_date'] != null ? json['to_date'].toString() : ""), |
|
this.gurs_reference = (json['gurs_reference'] != null |
|
? json['gurs_reference'].toString() |
|
: ""), |
|
this.authorisation_type = (json['authorisation_type'] != null |
|
? json['authorisation_type'].toString() |
|
: ""), |
|
this.concession_decree_number = |
|
(json['concession_decree_number'] != null |
|
? json['concession_decree_number'].toString() |
|
: ""), |
|
this.release_date = (json['release_date'] != null |
|
? json['release_date'].toString() |
|
: ""), |
|
this.concession_duration = (json['concession_duration'] != null |
|
? json['concession_duration'].toString() |
|
: ""), |
|
this.expiration_date = (json['expiration_date'] != null |
|
? json['expiration_date'].toString() |
|
: ""), |
|
this.first_istance = (json['first_istance'] != null |
|
? json['first_istance'].toString() |
|
: ""), |
|
this.takeover = |
|
(json['takeover'] != null ? json['takeover'].toString() : ""), |
|
this.initial_static_level_water = |
|
(json['initial_static_level_water'] != null |
|
? json['initial_static_level_water'].toString() |
|
: ""), |
|
this.initial_static_level_water_date = |
|
(json['initial_static_level_water_date'] != null |
|
? json['initial_static_level_water_date'].toString() |
|
: ""), |
|
this.static_level_water = (json['static_level_water'] != null |
|
? json['static_level_water'].toString() |
|
: ""), |
|
this.static_level_water_date = (json['static_level_water_date'] != null |
|
? json['static_level_water_date'].toString() |
|
: ""), |
|
this.authority_civil_engineer_code = |
|
(json['authority_civil_engineer_code'] != null |
|
? json['authority_civil_engineer_code'] |
|
: ""), |
|
this.authority_province = (json['authority_province'] != null |
|
? json['authority_province'] |
|
: ""), |
|
this.authority_identification_code_civil_engineering_office = |
|
(json['authority_identification_code_civil_engineering_office'] != |
|
null |
|
? json['authority_identification_code_civil_engineering_office'] |
|
: ""), |
|
this.authority_identification_code_derivation_department_water_waste = |
|
(json['authority_identification_code_derivation_department_water_waste'] != |
|
null |
|
? json['authority_identification_code_derivation_department_water_waste'] |
|
.toString() |
|
: ""), |
|
this.water_drawing_article_id = |
|
(json['water_drawing_article_id'] != null |
|
? json['water_drawing_article_id'].toString() |
|
: ""), |
|
this.controllable_object_id = (json['controllable_object_id'] != null |
|
? json['controllable_object_id'] |
|
: 0), |
|
this.deleted = |
|
(json['deleted'] != null ? json['deleted'].toString() : ""), |
|
this.geom = (json['geom'] != null ? json['geom'].toString() : ""), |
|
this.feature_collection = (json['feature_collection'] != null |
|
? json['feature_collection'].toString() |
|
: ""), |
|
this.scanned = (json['scanned'] != null ? json['scanned'] : false), |
|
this.drar_user_id = |
|
(json['drar_user_id'] != null ? json['drar_user_id'] : 0), |
|
this.gc_user_id = (json['gc_user_id'] != null ? json['gc_user_id'] : 0), |
|
this.water_drawing_paperwork_status = |
|
(json['water_drawing_paperwork_status'] != null |
|
? WaterDrawingPaperworkStatus.fromJson( |
|
json['water_drawing_paperwork_status']) |
|
: new WaterDrawingPaperworkStatus()), |
|
this.controllable_object = (json['controllable_object'] != null |
|
? ControllableObject.fromJson(json['controllable_object']) |
|
: new ControllableObject()), |
|
this.applicants = |
|
(json['applicants'] != null ? json['applicants'] : false), |
|
this.check_thc = |
|
(json['check_thc'] != null ? json['check_thc'] : false), |
|
this.check_dv = (json['check_dv'] != null ? json['check_dv'] : false), |
|
this.check_lic = |
|
(json['check_lic'] != null ? json['check_lic'] : false), |
|
this.check_dec = |
|
(json['check_dec'] != null ? json['check_dec'] : false), |
|
this.check_dsc = |
|
(json['check_dsc'] != null ? json['check_dsc'] : false), |
|
this.check2a = (json['check2a'] != null ? json['check2a'] : false), |
|
this.check_ssd = |
|
(json['check_ssd'] != null ? json['check_ssd'] : false), |
|
this.check_dam = |
|
(json['check_dam'] != null ? json['check_dam'] : false); |
|
PraticheModel() {} |
|
} |
|
|
|
class WaterDrawingPaperworkStatus { |
|
late int id; |
|
late String description; |
|
late String rgb; |
|
|
|
WaterDrawingPaperworkStatus.fromJson(Map<String, dynamic> json) |
|
: this.id = (json['id'] != null ? json['id'] : 0), |
|
this.description = |
|
(json['description'] != null ? json['description'] : ""), |
|
this.rgb = (json['rgb'] != null ? json['rgb'] : ""); |
|
WaterDrawingPaperworkStatus() {} |
|
Map toJson() => {'id': id, 'description': description, 'rgb': rgb}; |
|
}
|
|
|