# FASTToken.fromXml constructor

FASTToken.fromXml(

1. XMLNode token

)

## Implementation

    factory FASTToken.fromXml(XMLNode token) {
      assert(
        token.tag == 'token',
        'Token can only be deserialised from a <token /> element',
      );
      assert(
        token.xmlns == fastXmlns,
        'Token can only be deserialised from a <token /> element',
      );

      return FASTToken(
        token.attributes['token']! as String,
        token.attributes['expiry']! as String,
      );
    }