mapFromJson static method
Implementation
static Map<String, AgreementPrivacyPolicy> mapFromJson(
Map<String, dynamic>? json) {
if (json == null) {
return <String, AgreementPrivacyPolicy>{};
}
return json.entries.fold(<String, AgreementPrivacyPolicy>{},
(Map<String, AgreementPrivacyPolicy> previousValue, element) {
final AgreementPrivacyPolicy? object =
AgreementPrivacyPolicy.fromJson(element.value);
if (object is AgreementPrivacyPolicy) {
previousValue[element.key] = object;
}
return previousValue;
});
}