WhoIsInfo.fromJson constructor

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

Implementation

WhoIsInfo.fromJson(Map<String, Object?> json)
    : devices = ((v) => v != null
          ? (v as Map<String, Object?>).map(
              (k, v) =>
                  MapEntry(k, DeviceInfo.fromJson(v as Map<String, Object?>)),
            )
          : null)(json['devices']),
      userId = ((v) => v != null ? v as String : null)(json['user_id']);