toMap method

Map<String, dynamic> toMap()

Convert to Map (useful if you send it back to native)

Implementation

Map<String, dynamic> toMap() {
  return {
    'success': success,
    'message': message,
  };
}