ErrorData.fromJson constructor

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

Implementation

factory ErrorData.fromJson(Map<String, dynamic> json) {
  return ErrorData(
    totalErrores: json['totalerrores'],
    errores: json['errores'] != null
        ? (json['errores'] as List)
            .map((i) => ErrorDetail.fromJson(i))
            .toList()
        : null,
    idFactura: json['idfactura'],
  );
}