step 15 : selected ke edit
This commit is contained in:
@@ -20,13 +20,13 @@ class PersonKtp {
|
||||
// Convert JSON to Model
|
||||
factory PersonKtp.fromJson(Map<String, dynamic> json) {
|
||||
return PersonKtp(
|
||||
personID: json['Person_ID'],
|
||||
personNIK: json['Person_NIK'],
|
||||
personName: json['Person_Name'],
|
||||
personDob: json['Person_Dob'],
|
||||
personSex: json['Person_Sex'],
|
||||
personUrl: json['Person_Url'],
|
||||
m_sexname: json['m_sexname'],
|
||||
personID: json['Person_ID'] ?? "",
|
||||
personNIK: json['Person_NIK'] ?? "",
|
||||
personName: json['Person_Name'] ?? "",
|
||||
personDob: json['Person_Dob'] ?? DateTime.now(),
|
||||
personSex: json['Person_Sex'] ?? "",
|
||||
personUrl: json['Person_Url'] ?? "",
|
||||
m_sexname: json['m_sexname'] ?? "",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user