toJson method
Converts this to a JSON compatible map. For a description of the format, see fromDynamic.
Implementation
@override
Map<String, dynamic> toJson() => {
'backgroundColor': ThemeEncoder.encodeColor(backgroundColor),
'imageId': imageId,
'testableId': testableId,
'timeout': timeout?.inSeconds,
};