responsesFileContent top-level constant

String const responsesFileContent

Implementation

const String responsesFileContent = '''
import 'package:json_annotation/json_annotation.dart';
part 'responses.g.dart';


@JsonSerializable(genericArgumentFactories: true)
class BaseResponse<T> {
  @JsonKey(name: "message")
  String? message;
  @JsonKey(name: "data")
  T? data;
}

  @JsonSerializable()
class ExampleResponse{
ExampleResponse();
  factory ExampleResponse.fromJson(Map<String,dynamic> json)=>_\$ExampleResponseFromJson(json);
  Map<String, dynamic> toJson() => _\$ExampleResponseToJson(this);

 }
''';