toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final apiId = this.apiId;
  final stage = this.stage;
  final throttle = this.throttle;
  return {
    if (apiId != null) 'apiId': apiId,
    if (stage != null) 'stage': stage,
    if (throttle != null) 'throttle': throttle,
  };
}