toMap method Null safety

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      'messageId': messageId,
      'title': title,
      'content': content,
      'payload': payload,
      'payloadId': payloadId,
      'taskId': taskId,
      'offLine': offLine,
      'fromGeTui': fromGeTui,
      'sound': sound
    };