toJson method

Map<String, dynamic> toJson()

Converts the LocalizationModel instance to a JSON map.

The keys 'promptDialogTitle', 'promptDialogReason', and 'cancelButtonTitle' in the returned map correspond to the respective properties in this class.

Implementation

Map<String, dynamic> toJson() {
  return {
    'promptDialogTitle': promptDialogTitle,
    'promptDialogReason': promptDialogReason,
    'cancelButtonTitle': cancelButtonTitle,
  };
}