import 'package:json_annotation/json_annotation.dart'; 
  
part 'base_page_data_report.g.dart';


@JsonSerializable(genericArgumentFactories: true, fieldRename: FieldRename.snake)
  class BasePageDataReport<T> extends Object {

  @JsonKey(name: 'Data')
  List<T> items;

  @JsonKey(name: 'Total')
  int total;

  BasePageDataReport(this.items,this.total,);

  factory BasePageDataReport.fromJson( Map<String, dynamic> json, T Function(dynamic json) fromJsonT) => _$BasePageDataReportFromJson(json, fromJsonT);
  Map<String, dynamic> toJson(Object Function(T value) toJsonT) => _$BasePageDataReportToJson(this, toJsonT);
}