(protoMap: { [key: string]: string } | undefined)
| 129 | } |
| 130 | |
| 131 | function decodeTagValueMap(protoMap: { [key: string]: string } | undefined): TagValue[] | null { |
| 132 | if (!protoMap) return null |
| 133 | const entries = Object.entries(protoMap) |
| 134 | if (entries.length === 0) return null |
| 135 | return entries.map(([tag, value]) => new TagValue(tag, value)) |
| 136 | } |
| 137 | |
| 138 | function decodeConditionsFromProto(conditions: OrderConditionProto[] | undefined): OrderCondition[] { |
| 139 | if (!conditions || conditions.length === 0) return [] |
no outgoing calls
no test coverage detected