toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'detail': detail.name,
      'synchronization': synchronization.name,
      if (stableTimeout != null)
        'stableTimeoutMs': stableTimeout!.inMilliseconds,
      'includeScreenshot': includeScreenshot,
      'includeBounds': includeBounds,
      'allowPartial': allowPartial,
      'keyedOnly': keyedOnly,
    };