PayrollDetailResponse.fromJson constructor

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

Creates a new instance of the PayrollDetailResponse class from a JSON map.

The json parameter is a JSON map representing the payroll detail response.

Implementation

factory PayrollDetailResponse.fromJson(Map<String, dynamic> json) {
  return PayrollDetailResponse(
    data: PayrollDetailModel.fromJson(json["data"]),
    meta: MetaData.fromJson(json["meta"]),
  );
}