OrdersSetLineItemMetadataRequest.fromJson constructor

OrdersSetLineItemMetadataRequest.fromJson(
  1. Map json_
)

Implementation

OrdersSetLineItemMetadataRequest.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.List)
                .map((value) => OrderMerchantProvidedAnnotation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        lineItemId: json_.containsKey('lineItemId')
            ? json_['lineItemId'] as core.String
            : null,
        operationId: json_.containsKey('operationId')
            ? json_['operationId'] as core.String
            : null,
        productId: json_.containsKey('productId')
            ? json_['productId'] as core.String
            : null,
      );