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 json) => _$ResponseFromJson(json); Map toJson() => _$ResponseToJson(this); final String description; final Map? content; final Map? headers; }