Profile.fromJson constructor
Profile.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Profile.fromJson(Map<String, dynamic> json) {
return Profile(
address: json['Address'] as String?,
addressBookArn: json['AddressBookArn'] as String?,
distanceUnit: (json['DistanceUnit'] as String?)?.toDistanceUnit(),
isDefault: json['IsDefault'] as bool?,
locale: json['Locale'] as String?,
maxVolumeLimit: json['MaxVolumeLimit'] as int?,
meetingRoomConfiguration: json['MeetingRoomConfiguration'] != null
? MeetingRoomConfiguration.fromJson(
json['MeetingRoomConfiguration'] as Map<String, dynamic>)
: null,
pSTNEnabled: json['PSTNEnabled'] as bool?,
profileArn: json['ProfileArn'] as String?,
profileName: json['ProfileName'] as String?,
setupModeDisabled: json['SetupModeDisabled'] as bool?,
temperatureUnit:
(json['TemperatureUnit'] as String?)?.toTemperatureUnit(),
timezone: json['Timezone'] as String?,
wakeWord: (json['WakeWord'] as String?)?.toWakeWord(),
);
}