fromJson method

  1. @override
int? fromJson(
  1. Object? json
)

Implementation

@override
int? fromJson(Object? json) => json == null
    ? null
    : json is num
        ? json.toInt()
        : (json is String ? int.tryParse(json) : json as int?);