InvoiceLineItemPeriod.fromJson constructor

InvoiceLineItemPeriod.fromJson(
  1. Object? json
)

Implementation

factory InvoiceLineItemPeriod.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return InvoiceLineItemPeriod(
    end: DateTime.fromMillisecondsSinceEpoch((map['end'] as int).toInt()),
    start: DateTime.fromMillisecondsSinceEpoch((map['start'] as int).toInt()),
  );
}