2023-07-28 02:35:36 +00:00
|
|
|
// To parse this JSON data, do
|
|
|
|
//
|
|
|
|
// final signatories = signatoriesFromJson(jsonString);
|
|
|
|
|
|
|
|
import 'dart:convert';
|
|
|
|
|
|
|
|
Signatories signatoriesFromJson(String str) =>
|
|
|
|
Signatories.fromJson(json.decode(str));
|
|
|
|
|
|
|
|
String signatoriesToJson(Signatories data) => json.encode(data.toJson());
|
|
|
|
|
|
|
|
class Signatories {
|
|
|
|
final int? id;
|
|
|
|
final int signatoryId;
|
|
|
|
final String firstname;
|
|
|
|
final String middlename;
|
|
|
|
final String lastname;
|
2024-03-21 05:47:57 +00:00
|
|
|
final String designation;
|
|
|
|
// final String status;
|
|
|
|
// final String genCode;
|
2023-07-28 02:35:36 +00:00
|
|
|
|
|
|
|
Signatories({
|
|
|
|
this.id,
|
|
|
|
required this.signatoryId,
|
|
|
|
required this.firstname,
|
|
|
|
required this.middlename,
|
|
|
|
required this.lastname,
|
2024-03-21 05:47:57 +00:00
|
|
|
required this.designation,
|
|
|
|
// required this.status
|
|
|
|
// required this.genCode,
|
2023-07-28 02:35:36 +00:00
|
|
|
});
|
|
|
|
|
2024-03-21 05:47:57 +00:00
|
|
|
Signatories copy({
|
|
|
|
int? id,
|
|
|
|
int? signatoryId,
|
|
|
|
String? firstname,
|
|
|
|
String? middlename,
|
|
|
|
String? lastname,
|
|
|
|
String? designation,
|
|
|
|
// String? status
|
|
|
|
// String? genCode
|
|
|
|
}) {
|
2023-11-10 08:38:47 +00:00
|
|
|
return Signatories(
|
2024-03-21 05:47:57 +00:00
|
|
|
id: id ?? this.id,
|
|
|
|
signatoryId: signatoryId ?? this.signatoryId,
|
|
|
|
firstname: firstname ?? this.firstname,
|
|
|
|
middlename: middlename ?? this.middlename,
|
|
|
|
lastname: lastname ?? this.lastname,
|
|
|
|
designation: designation ?? this.designation,
|
|
|
|
// status: status ?? this.status
|
|
|
|
// genCode: genCode ?? this.genCode
|
|
|
|
);
|
2023-11-10 08:38:47 +00:00
|
|
|
}
|
|
|
|
|
2023-07-28 02:35:36 +00:00
|
|
|
factory Signatories.fromJson(Map<String, dynamic> json) => Signatories(
|
|
|
|
id: json["id"],
|
|
|
|
signatoryId: json["signatory_id"],
|
|
|
|
firstname: json["firstname"],
|
|
|
|
middlename: json["middlename"],
|
|
|
|
lastname: json["lastname"],
|
2024-03-21 05:47:57 +00:00
|
|
|
designation: json["designation"],
|
|
|
|
// status: json["status"]
|
|
|
|
// genCode: json["gen_code"],
|
2023-07-28 02:35:36 +00:00
|
|
|
);
|
|
|
|
|
2023-11-10 08:38:47 +00:00
|
|
|
factory Signatories.fromJson2(Map<String, dynamic> json) => Signatories(
|
|
|
|
id: json["id"],
|
|
|
|
signatoryId: json["signatoryId"],
|
|
|
|
firstname: json["firstname"],
|
|
|
|
middlename: json["middlename"],
|
|
|
|
lastname: json["lastname"],
|
2024-03-21 05:47:57 +00:00
|
|
|
designation: json["designation"],
|
|
|
|
// status: json["status"]
|
|
|
|
// genCode: json["gen_code"],
|
2023-11-10 08:38:47 +00:00
|
|
|
);
|
|
|
|
|
2023-07-28 02:35:36 +00:00
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
"id": id,
|
|
|
|
"signatory_id": signatoryId,
|
|
|
|
"firstname": firstname,
|
|
|
|
"middlename": middlename,
|
|
|
|
"lastname": lastname,
|
2024-03-21 05:47:57 +00:00
|
|
|
"designation": designation,
|
|
|
|
// "status": status
|
|
|
|
// "gen_code": genCode
|
2023-07-28 02:35:36 +00:00
|
|
|
};
|
|
|
|
}
|