You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
518 B
22 lines
518 B
import 'package:dynamite/src/models/media_type.dart'; |
|
import 'package:json_annotation/json_annotation.dart'; |
|
|
|
part 'request_body.g.dart'; |
|
|
|
@JsonSerializable() |
|
class RequestBody { |
|
RequestBody({ |
|
this.description, |
|
this.content, |
|
this.required, |
|
}); |
|
|
|
factory RequestBody.fromJson(final Map<String, dynamic> json) => _$RequestBodyFromJson(json); |
|
Map<String, dynamic> toJson() => _$RequestBodyToJson(this); |
|
|
|
final String? description; |
|
|
|
final Map<String, MediaType>? content; |
|
|
|
final bool? required; |
|
}
|
|
|