toJson method

Map<String, Object> toJson()

Converts a LimitResponse instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  final tempQueuing = queuing;
  final tempType = type;

  if (tempQueuing != null) {
    jsonData['queuing'] = tempQueuing.toJson();
  }

  jsonData['type'] = tempType;

  return jsonData;
}