toJson method

String toJson()

Implementation

String toJson() => jsonEncode({
      'success': success,
      'error': error,
      'data': data,
      'transaction': action
    });