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 json) => _$RequestBodyFromJson(json); Map toJson() => _$RequestBodyToJson(this); final String? description; final Map? content; final bool? required; }