toJSON method

Map<String, dynamic> toJSON()

Implementation

Map<String, dynamic> toJSON() {
  return {
    'error': code,
    'statusCode': statusCode,
  };
}