toMap method

Map<String, dynamic> toMap()

Creates a Map containing all information about this message.

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
      'receiverId': _receiverId,
      'name': name,
      'data': data,
      'timestamp': timestamp?.toIso8601String(),
    };