toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type,
    if (type != 'http') 'name': name,
    if (type != 'http') 'in': position,
    if (description != null) 'description': description,
    if (scheme != null) 'scheme': scheme,
    if (bearerFormat != null) 'bearerFormat': bearerFormat,
  };
}