public static System.Collections.JsDictionary ToJsDictionary(CustomObject2 value) { if ((value == null)) { return null; } System.Collections.JsDictionary returnValue = new System.Collections.JsDictionary(); returnValue["Property1"] = value.Property1; returnValue["Property2"] = value.Property2; returnValue["Property3"] = EnumConverters.ConvertNullableSomeEnumToString(value.Property3); return returnValue; }
public static CustomObject2 FromJsDictionary(System.Collections.JsDictionary value) { if ((value == null)) { return null; } CustomObject2 returnValue = new CustomObject2(); returnValue.Property1 = System.Script.Reinterpret<string>(value["Property1"]); returnValue.Property2 = System.Script.Reinterpret<System.Nullable<int>>(value["Property2"]); returnValue.Property3 = EnumConverters.ConvertStringToNullableSomeEnum(System.Script.Reinterpret<string>(value["Property3"])); return returnValue; }