IApillonResponse<T>.fromJson constructor

IApillonResponse<T>.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory IApillonResponse.fromJson(Map<String, dynamic> json) {
  return IApillonResponse(
    id: json['id'] as String,
    status: json['status'] as int,
    data: json['data'] as T,
  );
}