ProfileData.fromJson constructor
ProfileData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ProfileData.fromJson(Map<String, dynamic> json) {
return ProfileData(
address: json['Address'] as String?,
distanceUnit: (json['DistanceUnit'] as String?)?.toDistanceUnit(),
isDefault: json['IsDefault'] as bool?,
locale: json['Locale'] as String?,
profileArn: json['ProfileArn'] as String?,
profileName: json['ProfileName'] as String?,
temperatureUnit:
(json['TemperatureUnit'] as String?)?.toTemperatureUnit(),
timezone: json['Timezone'] as String?,
wakeWord: (json['WakeWord'] as String?)?.toWakeWord(),
);
}