valueFromJson method

  1. @override
BigInt valueFromJson(
  1. dynamic json
)
override

Implementation

@override
BigInt valueFromJson(dynamic json) => switch (json) {
      String str => BigInt.parse(str),
      _ => throw Exception('Invalid JSON type'),
    };