CustomerIndexStats.fromJson constructor

CustomerIndexStats.fromJson(
  1. Map json_
)

Implementation

CustomerIndexStats.fromJson(core.Map json_)
    : this(
        date: json_.containsKey('date')
            ? Date.fromJson(
                json_['date'] as core.Map<core.String, core.dynamic>)
            : null,
        itemCountByStatus: json_.containsKey('itemCountByStatus')
            ? (json_['itemCountByStatus'] as core.List)
                .map((value) => ItemCountByStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );