requestTemplate function

String requestTemplate(
  1. String feature
)

Implementation

String requestTemplate(String feature) => '''
class Fetch${_cap(feature)}Query {
  Fetch${_cap(feature)}Query({
    this.date,
    this.status,
    this.limit,
    this.offset,
  });

  final String? date;
  final String? status;
  final int? limit;
  final int? offset;

  Map<String, dynamic> toJson() {
    return <String, dynamic>{
      'date': date,
      'status': status,
      'limit': limit,
      'offset': offset,
    }..removeWhere((key, value) => value == null);
  }
}
''';