static TestInt? fromJson(Map<String, dynamic>? json) { if (json == null) { return null; } return TestInt(value: (json['value'] as int?) ?? 0); }