step 14 : change card list model person sex into m_sexname
This commit is contained in:
@@ -5,6 +5,7 @@ class PersonKtp {
|
|||||||
final String personDob;
|
final String personDob;
|
||||||
final String personSex;
|
final String personSex;
|
||||||
final String personUrl;
|
final String personUrl;
|
||||||
|
final String m_sexname;
|
||||||
|
|
||||||
PersonKtp({
|
PersonKtp({
|
||||||
required this.personID,
|
required this.personID,
|
||||||
@@ -13,6 +14,7 @@ class PersonKtp {
|
|||||||
required this.personDob,
|
required this.personDob,
|
||||||
required this.personSex,
|
required this.personSex,
|
||||||
required this.personUrl,
|
required this.personUrl,
|
||||||
|
required this.m_sexname,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Convert JSON to Model
|
// Convert JSON to Model
|
||||||
@@ -24,6 +26,7 @@ class PersonKtp {
|
|||||||
personDob: json['Person_Dob'],
|
personDob: json['Person_Dob'],
|
||||||
personSex: json['Person_Sex'],
|
personSex: json['Person_Sex'],
|
||||||
personUrl: json['Person_Url'],
|
personUrl: json['Person_Url'],
|
||||||
|
m_sexname: json['m_sexname'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,6 +39,7 @@ class PersonKtp {
|
|||||||
'Person_Dob': personDob,
|
'Person_Dob': personDob,
|
||||||
'Person_Sex': personSex,
|
'Person_Sex': personSex,
|
||||||
'Person_Url': personUrl,
|
'Person_Url': personUrl,
|
||||||
|
'm_sexname':m_sexname,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ class CardRiwayatScan extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
data.personSex,
|
data.m_sexname,
|
||||||
style: Constant.cardText(context: context).copyWith(
|
style: Constant.cardText(context: context).copyWith(
|
||||||
color: Constant.textCardGrey,
|
color: Constant.textCardGrey,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user