fromJson method

T? fromJson(
  1. Object? json
)

simple fromJson method, e.g. int.parse(json.toString) for an int value.

Implementation

T? fromJson(Object? json) => json as T?;