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.
23 lines
570 B
23 lines
570 B
import 'package:dynamite/src/models/header.dart'; |
|
import 'package:dynamite/src/models/media_type.dart'; |
|
import 'package:json_annotation/json_annotation.dart'; |
|
|
|
part 'response.g.dart'; |
|
|
|
@JsonSerializable() |
|
class Response { |
|
Response({ |
|
required this.description, |
|
this.content, |
|
this.headers, |
|
}); |
|
|
|
factory Response.fromJson(final Map<String, dynamic> json) => _$ResponseFromJson(json); |
|
Map<String, dynamic> toJson() => _$ResponseToJson(this); |
|
|
|
final String description; |
|
|
|
final Map<String, MediaType>? content; |
|
|
|
final Map<String, Header>? headers; |
|
}
|
|
|