Metrics.fromJson constructor

Metrics.fromJson(
  1. Map json_
)

Implementation

Metrics.fromJson(core.Map json_)
    : this(
        aos: json_.containsKey('aos')
            ? (json_['aos'] as core.num).toDouble()
            : null,
        aovMicros: json_.containsKey('aovMicros')
            ? (json_['aovMicros'] as core.num).toDouble()
            : null,
        clicks: json_.containsKey('clicks')
            ? json_['clicks'] as core.String
            : null,
        conversionRate: json_.containsKey('conversionRate')
            ? (json_['conversionRate'] as core.num).toDouble()
            : null,
        conversionValueMicros: json_.containsKey('conversionValueMicros')
            ? json_['conversionValueMicros'] as core.String
            : null,
        conversions: json_.containsKey('conversions')
            ? (json_['conversions'] as core.num).toDouble()
            : null,
        ctr: json_.containsKey('ctr')
            ? (json_['ctr'] as core.num).toDouble()
            : null,
        daysToShip: json_.containsKey('daysToShip')
            ? (json_['daysToShip'] as core.num).toDouble()
            : null,
        impressions: json_.containsKey('impressions')
            ? json_['impressions'] as core.String
            : null,
        itemDaysToShip: json_.containsKey('itemDaysToShip')
            ? (json_['itemDaysToShip'] as core.num).toDouble()
            : null,
        itemFillRate: json_.containsKey('itemFillRate')
            ? (json_['itemFillRate'] as core.num).toDouble()
            : null,
        orderedItemSalesMicros: json_.containsKey('orderedItemSalesMicros')
            ? json_['orderedItemSalesMicros'] as core.String
            : null,
        orderedItems: json_.containsKey('orderedItems')
            ? json_['orderedItems'] as core.String
            : null,
        orders: json_.containsKey('orders')
            ? json_['orders'] as core.String
            : null,
        rejectedItems: json_.containsKey('rejectedItems')
            ? json_['rejectedItems'] as core.String
            : null,
        returnRate: json_.containsKey('returnRate')
            ? (json_['returnRate'] as core.num).toDouble()
            : null,
        returnedItems: json_.containsKey('returnedItems')
            ? json_['returnedItems'] as core.String
            : null,
        returnsMicros: json_.containsKey('returnsMicros')
            ? json_['returnsMicros'] as core.String
            : null,
        shippedItemSalesMicros: json_.containsKey('shippedItemSalesMicros')
            ? json_['shippedItemSalesMicros'] as core.String
            : null,
        shippedItems: json_.containsKey('shippedItems')
            ? json_['shippedItems'] as core.String
            : null,
        shippedOrders: json_.containsKey('shippedOrders')
            ? json_['shippedOrders'] as core.String
            : null,
        unshippedItems: json_.containsKey('unshippedItems')
            ? (json_['unshippedItems'] as core.num).toDouble()
            : null,
        unshippedOrders: json_.containsKey('unshippedOrders')
            ? (json_['unshippedOrders'] as core.num).toDouble()
            : null,
      );