@@ -48,10 +48,10 @@ export interface RosettaConstructionMetadataRequest {
48
48
options : RosettaOptions ;
49
49
/**
50
50
*
51
- * @type {RosettaPublicKey }
51
+ * @type {Array< RosettaPublicKey> }
52
52
* @memberof RosettaConstructionMetadataRequest
53
53
*/
54
- public_keys ?: RosettaPublicKey ;
54
+ public_keys ?: Array < RosettaPublicKey > ;
55
55
}
56
56
57
57
export function RosettaConstructionMetadataRequestFromJSON ( json : any ) : RosettaConstructionMetadataRequest {
@@ -66,7 +66,7 @@ export function RosettaConstructionMetadataRequestFromJSONTyped(json: any, ignor
66
66
67
67
'network_identifier' : NetworkIdentifierFromJSON ( json [ 'network_identifier' ] ) ,
68
68
'options' : RosettaOptionsFromJSON ( json [ 'options' ] ) ,
69
- 'public_keys' : ! exists ( json , 'public_keys' ) ? undefined : RosettaPublicKeyFromJSON ( json [ 'public_keys' ] ) ,
69
+ 'public_keys' : ! exists ( json , 'public_keys' ) ? undefined : ( ( json [ 'public_keys' ] as Array < any > ) . map ( RosettaPublicKeyFromJSON ) ) ,
70
70
} ;
71
71
}
72
72
@@ -81,7 +81,7 @@ export function RosettaConstructionMetadataRequestToJSON(value?: RosettaConstruc
81
81
82
82
'network_identifier' : NetworkIdentifierToJSON ( value . network_identifier ) ,
83
83
'options' : RosettaOptionsToJSON ( value . options ) ,
84
- 'public_keys' : RosettaPublicKeyToJSON ( value . public_keys ) ,
84
+ 'public_keys' : value . public_keys === undefined ? undefined : ( ( value . public_keys as Array < any > ) . map ( RosettaPublicKeyToJSON ) ) ,
85
85
} ;
86
86
}
87
87
0 commit comments