DeviceKeys.fromJson constructor

DeviceKeys.fromJson(
  1. Map<String, dynamic> json,
  2. Client client
)

Implementation

DeviceKeys.fromJson(Map<String, dynamic> json, Client client)
    : super.fromJson(json.copy(), client) {
  final json = toJson();
  identifier = json['device_id'];
  algorithms = json['algorithms'].cast<String>();
  lastActive = DateTime.fromMillisecondsSinceEpoch(0);
}