toMap method

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

Implementation

@override
Map<String, dynamic> toMap() {
  var json = <String, dynamic>{
    'type': 'error',
    'message': _message,
    'resumeCapturingDelay': _resumeCapturingDelay.inMilliseconds
  };
  if (_visualFeedbackColor != null) {
    json['visualFeedbackColor'] = _visualFeedbackColor.jsonValue;
  }
  return json;
}