QueryOraclePriceHashResponse.fromJson constructor

QueryOraclePriceHashResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory QueryOraclePriceHashResponse.fromJson(Map<String, dynamic> json) {
  return QueryOraclePriceHashResponse(
    oraclePriceHash: json.valueTo<
      opinit_ophost_v1_types.OraclePriceHash?,
      Map<String, dynamic>
    >(
      key: 'oracle_price_hash',
      parse: (v) => opinit_ophost_v1_types.OraclePriceHash.fromJson(v),
      acceptCamelCase: true,
    ),
  );
}