DeviceInfo.fromJson constructor

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

Implementation

DeviceInfo.fromJson(Map<String, Object?> json)
  : sessions = ((v) => v != null
        ? (v as List)
              .map((v) => SessionInfo.fromJson(v as Map<String, Object?>))
              .toList()
        : null)(json['sessions']);