DataSourceIndexStats.fromJson constructor

DataSourceIndexStats.fromJson(
  1. Map json_
)

Implementation

DataSourceIndexStats.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,
      );