diff --git a/test/models/name_value_model_test.dart b/test/models/name_value_model_test.dart index f451cea9..c1fd9f57 100644 --- a/test/models/name_value_model_test.dart +++ b/test/models/name_value_model_test.dart @@ -13,6 +13,11 @@ void main() { const resultExpected = {"name": "harry", "value": 23}; expect(nmRow1.toJson(), resultExpected); }); + test('Testing fromJson()', () { + const resultExpected = nmRow1; + expect(NameValueModel.fromJson({"name": "harry", "value": 23}), + resultExpected); + }); test('Testing copyWith()', () { const resultExpected = NameValueModel(name: "winter", value: "26");