DeviceReport.fromJson constructor

DeviceReport.fromJson(
  1. Map json_
)

Implementation

DeviceReport.fromJson(core.Map json_)
    : this(
        appState: json_.containsKey('appState')
            ? (json_['appState'] as core.List)
                .map((value) => AppState.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        lastUpdatedTimestampMillis:
            json_.containsKey('lastUpdatedTimestampMillis')
                ? json_['lastUpdatedTimestampMillis'] as core.String
                : null,
      );