toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'kind': 'alertWait',
  'alert': alert?.toJson(),
  if (waitedMs != null) 'waitedMs': waitedMs,
  if (timedOut != null) 'timedOut': timedOut,
};