toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'platform': platform,
      'device': device,
      'locale': locale,
      'appearance': appearance,
      'screenId': screenId,
      'file': file,
      'viewport': {'width': width, 'height': height, 'dpr': dpr},
      'elements': [for (final e in elements) e.toJson()],
    };