toJson method

Map<String, dynamic> toJson()

Converts the AuthMessage to a JSON-compatible map.

Returns a map with keys 'title', 'hint', and 'reason'.

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['title'] = title;
  map['hint'] = hint;
  map['reason'] = reason;
  return map;
}