fromJson static method

DeleteInvoicedMonthModel fromJson(
  1. dynamic value
)

Returns a new DeleteInvoicedMonthModel instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static DeleteInvoicedMonthModel fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return DeleteInvoicedMonthModel(
    customerId: mapValueOfType<int>(json, r'customerId')!,
    month: MonthDate.fromJson(json[r'month'])!,
  );
}