toJson method

Map<String, Object?> toJson()

The shot as it's reported in a step event, without the PNG.

Implementation

Map<String, Object?> toJson() => {
  'id': id,
  'kind': kind.name,
  'name': ?name,
  'locale': ?locale,
  'theme': ?theme,
  'store': ?store,
  if (isNative) 'native': true,
  'nativeFallback': ?nativeFallback,
  'width': ?screenshot?.width,
  'height': ?screenshot?.height,
};