CustomerQueryStats.fromJson constructor

CustomerQueryStats.fromJson(
  1. Map json_
)

Implementation

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