toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      '_id': id,
      'name': name,
      't': t,
      'usernames': usernames,
      'msgs': msgs,
      'u': user != null ? user!.toMap() : null,
      'ts': ts != null ? ts!.toIso8601String() : null,
    };