toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final did = this.did;
  final message = this.message;
  final updated = this.updated;
  final random_server = this.random_server;
  return {
    if (did != null) 'did': did,
    if (message != null) 'message': message,
    if (updated != null) 'updated': updated,
    if (random_server != null) 'random_server': random_server
  };
}