toMap method

  1. @override
Map<String, dynamic> toMap()

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'success': success.toMap(),
    'error': error.toMap(),
  };
}