LocalizationModel.fromJson constructor
Creates a LocalizationModel instance from a JSON map.
The keys 'promptDialogTitle', 'promptDialogReason', and 'cancelButtonTitle'
in the json
map should correspond to the respective properties in this class.
Implementation
factory LocalizationModel.fromJson(Map<String, dynamic> json) {
return LocalizationModel(
promptDialogTitle: json['promptDialogTitle'] ?? '',
promptDialogReason: json['promptDialogReason'] ?? '',
cancelButtonTitle: json['cancelButtonTitle'] ?? '',
);
}