fromJson static method

InvoiceAppointmentsModel fromJson(
  1. dynamic value
)

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

Implementation

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