IssuingPersonalizationDesignCreateOptions.fromJson constructor
IssuingPersonalizationDesignCreateOptions.fromJson(
- Object? json
Implementation
factory IssuingPersonalizationDesignCreateOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return IssuingPersonalizationDesignCreateOptions(
cardLogo: map['card_logo'] == null ? null : (map['card_logo'] as String),
carrierText: map['carrier_text'] == null
? null
: PersonalizationDesignCarrierText.fromJson(map['carrier_text']),
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
lookupKey:
map['lookup_key'] == null ? null : (map['lookup_key'] as String),
metadata: map['metadata'] == null
? null
: (map['metadata'] as Map).cast<String, Object?>().map((
key,
value,
) =>
MapEntry(
key,
(value as String),
)),
name: map['name'] == null ? null : (map['name'] as String),
physicalBundle: (map['physical_bundle'] as String),
preferences: map['preferences'] == null
? null
: PersonalizationDesignPreferences.fromJson(map['preferences']),
transferLookupKey: map['transfer_lookup_key'] == null
? null
: (map['transfer_lookup_key'] as bool),
);
}