fromJSON method

  1. @override
Int64 fromJSON(
  1. dynamic jsonValue,
  2. DeserializationContext context
)

Implementation

@override
Int64 fromJSON(dynamic jsonValue, DeserializationContext context) {
  return jsonValue is Int64
      ? jsonValue
      : jsonValue is String
          ? Int64.parseInt(jsonValue)
          : Int64(jsonValue);
}