factory StateChanged.fromJson(Map<String, dynamic> json) { return StateChanged(json['id'], DateTime.parse(json['sent']), json['recipientId'], json['number'], json['state']); }