From 66892b9da114108c1fac9aa6facb0068b44972a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kaan=20=C4=B0nel?= Date: Mon, 25 Dec 2023 12:42:06 +0300 Subject: [PATCH] IntOrString.toJson implemented. --- lib/src/int_or_string.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/int_or_string.dart b/lib/src/int_or_string.dart index bfa13c9..a8f85d0 100644 --- a/lib/src/int_or_string.dart +++ b/lib/src/int_or_string.dart @@ -16,4 +16,6 @@ class IntOrString { String toString() { return value.toString(); } + + Object toJson() => value; }