toDocument method Null safety

  1. @override
Map<String, Object?> toDocument()
override

Implementation

@override
Map<String, Object?> toDocument() {
  return {
    'appID': appID,
    'actionType': actionType,
    'conditions': conditions == null ? null : conditions!.toDocument(),
    'dialogID': dialogID
  };
}