BugsnagDeviceWithState.fromJson constructor

BugsnagDeviceWithState.fromJson(
  1. Map<String, Object?> json
)

Implementation

BugsnagDeviceWithState.fromJson(Map<String, Object?> json)
    : freeDisk = json.safeGet<num>('freeDisk')?.toInt(),
      freeMemory = json.safeGet<num>('freeMemory')?.toInt(),
      orientation = json.safeGet('orientation'),
      time = json
          .safeGet<String>('time')
          ?.let((time) => DateTime.parse(time).toUtc()),
      super.fromJson(json);