fromJson method

  1. @override
num fromJson (dynamic data, { Symbol typeArgumentSymbol, Type type })
override

Create an instance of T from JSON.

Implementation

@override
num fromJson(dynamic data, {Symbol typeArgumentSymbol, Type type}) {
  if (data is num) {
    return data;
  }
  return null;
}