TransformUsage.fromJson constructor

TransformUsage.fromJson(
  1. Object? json
)

Implementation

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