Map<String, Object?> serializeAsMap() => { 'confirmationCode': confirmationValue, if (options != null) 'options': options!.serializeAsMap(), };