TransformQuantity.fromJson constructor

TransformQuantity.fromJson(
  1. Object? json
)

Implementation

factory TransformQuantity.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TransformQuantity(
    divideBy: (map['divide_by'] as num).toInt(),
    round: InvoiceitemPlanTransformUsageRound.fromJson(map['round']),
  );
}