ErrorGroupStats.fromJson constructor

ErrorGroupStats.fromJson(
  1. Map json_
)

Implementation

ErrorGroupStats.fromJson(core.Map json_)
    : this(
        affectedServices: json_.containsKey('affectedServices')
            ? (json_['affectedServices'] as core.List)
                .map((value) => ServiceContext.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        affectedUsersCount: json_.containsKey('affectedUsersCount')
            ? json_['affectedUsersCount'] as core.String
            : null,
        count:
            json_.containsKey('count') ? json_['count'] as core.String : null,
        firstSeenTime: json_.containsKey('firstSeenTime')
            ? json_['firstSeenTime'] as core.String
            : null,
        group: json_.containsKey('group')
            ? ErrorGroup.fromJson(
                json_['group'] as core.Map<core.String, core.dynamic>)
            : null,
        lastSeenTime: json_.containsKey('lastSeenTime')
            ? json_['lastSeenTime'] as core.String
            : null,
        numAffectedServices: json_.containsKey('numAffectedServices')
            ? json_['numAffectedServices'] as core.int
            : null,
        representative: json_.containsKey('representative')
            ? ErrorEvent.fromJson(json_['representative']
                as core.Map<core.String, core.dynamic>)
            : null,
        timedCounts: json_.containsKey('timedCounts')
            ? (json_['timedCounts'] as core.List)
                .map((value) => TimedCount.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );