toJson method

Map<String, dynamic> toJson()

Converts the action response back to a JSON-compatible map.

Implementation

Map<String, dynamic> toJson() => {
  'code': code,
  'action': action,
  'message': message,
};