Map<String, Object?> toJson() { var res = <String, Object?>{}; formResult.forEach((key, element) { if (!element.field.hideJson) { res[key] = element.toJson(); } }); return res; }