UnitInterval.fromJson constructor

UnitInterval.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UnitInterval.fromJson(Map<String, dynamic> json) {
  return UnitInterval(
      numerator: BigintUtils.parse(json["numerator"]),
      denominator: BigintUtils.parse(json["denominator"]));
}