toJson method Null safety

  1. @override
Map<String, dynamic> toJson()
override

Converts this to a JSON compatible map. For a description of the format, see fromDynamic.

Implementation

@override
Map<String, dynamic> toJson() => {
      'increment': increment,
      'scrollableId': scrollableId,
      'testableId': testableId,
      'timeout': timeout?.inSeconds,
    };