/// The device + session identity carried on every request. `name` and `id` are
/// stored pre-encrypted and become the `what` / `whom` headers.
class MeDescription {
  String id;

  String name;

  String token;

  MeDescription({required this.id, required this.name, required this.token});

  factory MeDescription.fromJson(Map<String, dynamic> json) {
    return MeDescription(
      id: json['id'] ?? "",
      name: json['name'] ?? "",
      token: json['token'] ?? "",
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['name'] = name;
    data['token'] = token;
    return data;
  }
}
