Decimal.fromJson constructor

Decimal.fromJson(
  1. Object? j
)

Implementation

factory Decimal.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Decimal(
    value: switch (json['value']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}