factory XDate.fromMap(Map<String, dynamic> map) { return XDate( date: DateTime.fromMillisecondsSinceEpoch( int.parse(map['date'].toString())), ); }