77
88namespace Box . Sdk . Gen . Schemas {
99 [ JsonConverter ( typeof ( EventsNextStreamPositionFieldConverter ) ) ]
10- public class EventsNextStreamPositionField : OneOf < string , double > {
10+ public class EventsNextStreamPositionField : OneOf < string , long > {
1111 public string ? StringVal => _val0 ;
1212
13- public double ? DoubleVal => _val1 ;
13+ public long ? LongVal => _val1 ;
1414
1515 public EventsNextStreamPositionField ( string value ) : base ( value ) { }
1616
17- public EventsNextStreamPositionField ( double value ) : base ( value ) { }
17+ public EventsNextStreamPositionField ( long value ) : base ( value ) { }
1818
1919 public static implicit operator EventsNextStreamPositionField ( string value ) => new EventsNextStreamPositionField ( value ) ;
2020
21- public static implicit operator EventsNextStreamPositionField ( double value ) => new EventsNextStreamPositionField ( value ) ;
21+ public static implicit operator EventsNextStreamPositionField ( long value ) => new EventsNextStreamPositionField ( value ) ;
2222
2323 class EventsNextStreamPositionFieldConverter : JsonConverter < EventsNextStreamPositionField > {
2424 public override EventsNextStreamPositionField Read ( ref Utf8JsonReader reader , Type typeToConvert , JsonSerializerOptions options ) {
@@ -32,7 +32,7 @@ public override EventsNextStreamPositionField Read(ref Utf8JsonReader reader, Ty
3232
3333 }
3434 try {
35- var result = JsonSerializer . Deserialize < double > ( document , new JsonSerializerOptions ( ) { UnmappedMemberHandling = JsonUnmappedMemberHandling . Disallow } ) ;
35+ var result = JsonSerializer . Deserialize < long > ( document , new JsonSerializerOptions ( ) { UnmappedMemberHandling = JsonUnmappedMemberHandling . Disallow } ) ;
3636 return result ;
3737 } catch {
3838
@@ -45,8 +45,8 @@ public override void Write(Utf8JsonWriter writer, EventsNextStreamPositionField?
4545 JsonSerializer . Serialize ( writer , value . StringVal , options ) ;
4646 return ;
4747 }
48- if ( value ? . DoubleVal != null ) {
49- JsonSerializer . Serialize ( writer , value . DoubleVal , options ) ;
48+ if ( value ? . LongVal != null ) {
49+ JsonSerializer . Serialize ( writer , value . LongVal , options ) ;
5050 return ;
5151 }
5252 }
0 commit comments