@override int? fromJson(String? json) { if (json is String) { return int.tryParse(json); } return null; }